package com.qf.spring1227.service.imlp;

import com.qf.spring1227.service.OnePieceParser;
import com.qf.spring1227.service.OnePieceService;

import java.io.IOException;
import java.util.List;

public class OnePieceServiceImpl implements OnePieceService {

    private List<OnePieceParser> list;

    public List<OnePieceParser> getList() {
        return list;
    }

    public void setList(List<OnePieceParser> list) {
        this.list = list;
    }

    @Override
    public void printJishu() throws IOException {
        for (OnePieceParser onePieceParser : list) {
            final String s = onePieceParser.parseOnePiece();
            System.out.println(s);
        }
    }
}
